package com.addplus.townmall.server.api.modelenum;

import java.util.HashMap;
import java.util.Map;

/**
 * 类名: PlatformEnum
 *
 * @author zhangjiehang
 * @version V1.0
 * @date 2018/9/20 下午5:19
 * @description 类描述: w
 */
public enum PlatformEnum {
    /**
     * 平台类型
     */
    APP(1, "app"),
    MINI(2,"mini"),
    PC(3,"pc")
    ;

    private Integer type;

    private String platform;

    PlatformEnum(Integer type, String platform){
        this.type = type;
        this.platform = platform;
    }

    public static final Map<Integer, PlatformEnum> lookupPlatform = new HashMap<Integer, PlatformEnum>();

    static {
        for (PlatformEnum platformEnum : PlatformEnum.values()) {
            lookupPlatform.put(platformEnum.getType(), platformEnum);
        }
    }


    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getPlatform() {
        return platform;
    }

    public void setPlatform(String platform) {
        this.platform = platform;
    }
}
